<%--
  Created by IntelliJ IDEA.
  User: Acer
  Date: 2020/8/29
  Time: 17:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()  + path + "/";

%>
<html>
<head>
    <title>Title</title>
    <link href="${pageContext.request.contextPath}/statics/css/layui.css" rel="stylesheet">
<%--    <link rel="stylesheet" href="${pageContext.request.contextPath}/statics/css/loginCss.css">--%>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/statics/css/layui.mobile.css">
    <script src="${pageContext.request.contextPath}/statics/js/jquery-3.3.1.js"></script>

    <style>
        *{
            margin: 0;
            padding: 0;
            /*background-color: #EAEAEA;*/
            /*background-image: url("/statics/images/bg.jpg");*/
        }
        #one{
            width: 400px;
            height: 160px;
            /*background-color: #1E90FF;*/
        }
        .formdiv{
            position: absolute;
            top: 40%;
            left: 50%;
            -webkit-transform: translate(-50%, -50%);
            -moz-transform: translate(-50%, -50%);
            -ms-transform: translate(-50%, -50%);
            -o-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
        }
    </style>
</head>
<body>


<div class="formdiv" id="one">

    <form class="layui-form" action="<%=basePath%>check" lay-filter="example" method="post">
        <h1 style="margin-left: 180px;margin-bottom: 30px">学生选课系统</h1>
        <div class="layui-form-item">
            <label class="layui-form-label">学号:</label>
            <div class="layui-input-block">
                <input  type="text" name="userId" lay-verify="title" autocomplete="off" placeholder="请输入学号" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">密码:</label>
            <div class="layui-input-block">
                <input  type="password" name="userPass" placeholder="请输入密码" autocomplete="off" class="layui-input"> &nbsp;&nbsp;
                <span style="color: red">${msg}</span>

            </div>
        </div>
        <div class="layui-form-item">
<%--            <label class="layui-form-label">密码:</label>--%>
            <div class="layui-input-block" style="margin-left: 200px">
<%--                <input type="submit" value="登录" class="layui-input" >--%>
                <button type="submit" class="layui-btn" lay-submit="" lay-filter="demo1">登录</button>
            </div>
        </div>
    </form>

</div>
</body>
</html>
